package com.gpscookie.vocabularystory;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;

public class AddStoryScreen extends AbstractActivity {
    private String entry;
	private String book;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.addstory);
        Intent it = this.getIntent();
        entry = it.getStringExtra("entry");
        book = it.getStringExtra("book");
        
        WebView wv = (WebView)findViewById(R.id.web);
        String url = Utils.INSTANCE.composeAddStoryURL(book, entry);
        Log.i("AddStoryScreen:onCreate(): loadurl ", url);
        wv.loadUrl(url);
    }
}
